﻿using HtmlParser.Dom;

namespace HtmlParser.Html
{
    public class HtmlElement : XmlElement
    {
        public HtmlElement(string name, XmlDocument doc)
            : base(string.Empty, name, string.Empty, doc)
        {

        }

        public static int Script = 0;
        /// <summary>
        /// 节点是否关闭
        /// </summary>
        public bool HasCloseNode { get; private set; }

        /// <summary>
        /// 关闭节点
        /// </summary>
        public void CloseNode()
        {
            HasCloseNode = true;
        }
        /// <summary>
        /// HTML 类型
        /// </summary>
        public int HtmlType { get; set; }
    }
}
